﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="EnGasAdoAPP.UI.BaseApplicationPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server">

<script runat="server" language="C#">
public void Page_PreInit(object sender, System.EventArgs e)
{
    string selectedTheme = this.GetSelectedTheme();
    if( !string.IsNullOrEmpty(selectedTheme)) this.Page.Theme = selectedTheme;
}
</script>
<title>Configure Special Edit Record Page</title>
</head><body>
<table cellspacing="0" cellpadding="0" border="0" class="pageBackground">
  <tr>
  <td class="pageAlignment">
    <table cellspacing="0" cellpadding="0" border="0" class="borderTable">
      <tr>
        <td class="pageBorderTL"><img src="../Images/space.gif" height="1" width="1" alt="" /></td>
        <td class="pageBorderT"><img src="../Images/space.gif" height="1" width="1" alt="" /></td>
        <td class="pageBorderTR"><img src="../Images/space.gif" height="1" width="1" alt="" /></td>
      </tr>
      <tr>
        <td class="pageBorderL"><img src="../Images/space.gif" height="1" width="1" alt="" /></td>
        <td class="pageBorderC">
	<table cellspacing="0" cellpadding="0" border="0">
	 <tr>
	  <td class="page_yellow">
		<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse"  width="100%" id="AutoNumber1">
		  <tr>
		  	<td class="dialog_header" colspan="3">
				<table cellpadding="0" cellspacing="0" border="0" width="100%">
				  <tr>
				    <td class="dialogHeaderEdgeL"><img src="../Images/space.gif" alt="" /></td>
				    <td class="dhb">
				        <table border="0" cellpadding="0" cellspacing="0">
				            <tr>
                                                     <td class="dialog_header_text">Configuring a Special Edit Record Page</td>
				            </tr>
				        </table>
				    </td>
				    <td class="dialogHeaderEdgeR"><img src="../Images/space.gif" alt="" /></td>
				  </tr>
				</table>
		  	</td>
		  </tr>
		  <tr>
		  	<td style="width: 20px;"></td>
			<td class="configureErrorPagesText"><br />
				The table that contains the record you are trying to edit is either a non-physical table (i.e. a View or a Query), or has no primary key. However, you can still create an Edit button for it by binding the Edit Icon and providing a Primary Key from a referenced physical table.<br /><br /> 
				This will enable you to edit a record from one of the referenced physical tables.  For example, you could bind the Edit Icon for the 'Alphabetical list of products' view from the Northwind database so that it displays a Products record for editing.<br /><br />
   				To bind the Edit button or icon to an Edit Record page:<br /><br />
			    <ol>
			      <li>If you have not yet created an Edit Record page, use the Application Wizard to create one.<br /><br /></li>
			      <li>Go to the Application Explorer tab, navigate in the tree to the page that contains the Edit button or icon, then click the Properties button on the tool bar.<br /><br />
			      <ul style="list-style-type:disc">
			      	<li>Select the name of the Edit button or icon in the tree.</li>
			      	<li>On the Bindings tab, modify the Redirect URL to point to your Edit Record page.<br />Example:  ../MyPages/MyEditRecordPage.aspx?QueryStringParam={0}<br /><br /></li>
			      	<li>The Redirect parameter should reference the field that is a Primary Key for an associated physical table.<br />Example: "FV:ProductID" <br /><br /></li>
			      </ul>
			      </li>
			      <li>Save changes and rebuild the application.</li>
			    </ol>
		    </td>
		  	<td style="width: 20px;"></td>
		  </tr>
		</table>
	  </td>
	 </tr>
	</table>
      </td>
      <td class="pageBorderR"><img src="../Images/space.gif" height="1" width="1" alt="" /></td>
    </tr>
    <tr>
      <td class="pageBorderBL"><img src="../Images/space.gif" height="1" width="1" alt="" /></td>
      <td class="pageBorderB"><img src="../Images/space.gif" height="1" width="1" alt="" /></td>
      <td class="pageBorderBR"><img src="../Images/space.gif" height="1" width="1" alt="" /></td>
    </tr>
  </table>
  </td>
  </tr>
</table>
</body></html>